Skip to content

Collapse multi-line @param / @return descriptions onto single lines#46

Merged
turegjorup merged 1 commit into
developfrom
feature/phpdoc-align-left
May 12, 2026
Merged

Collapse multi-line @param / @return descriptions onto single lines#46
turegjorup merged 1 commit into
developfrom
feature/phpdoc-align-left

Conversation

@turegjorup
Copy link
Copy Markdown
Collaborator

Summary

Dedicated follow-up stacked on top of PR #45 (PR C). A few docblocks in OpenIdConfigurationProvider and the test suite had their @param / @return descriptions wrapped onto a continuation * line:

* @param int $length
*                    Length of the random string to be generated
*
* @return string
*                The generated state

The phpdoc_align: vertical rule from the @symfony preset doesn't create those wraps — it just aligns whatever multi-line structure already exists in the source. The wrap was a best-effort output of an earlier auto-format pass, not a deliberate style choice.

Flattening each description back onto its tag line lets the @symfony rule pad the columns into a tidy aligned table instead:

* @param string|null $postLogoutRedirectUri The URL …
* @param string|null $state                 If a state …
* @param string|null $idToken               The id token

No .php-cs-fixer.dist.php change — the @symfony default produces the clean output once the source isn't pre-wrapped. Future single-line tags stay single-line under the same rule.

Also in this PR

Consolidates two ### Documentation subsections under [Unreleased] (left over from PR #44) into one. markdownlint's MD024 was flagging the duplicate heading.

Test plan

  • task lint:php — clean (phpdoc_align: vertical accepts the flattened form).
  • task lint:markdown — clean (no duplicate-heading warning).
  • task test:coverage — 100% on OpenIdConfigurationProvider (24/24 methods, 161/161 lines).
  • task analyze:php — no errors.
  • CI matrix on PR.

Base

Targets feature/phpstan-max-completion (PR #45). When PR #45 merges to develop, this PR auto-retargets.

🤖 Generated with Claude Code

@turegjorup turegjorup force-pushed the feature/phpdoc-align-left branch from d98fc27 to 7906138 Compare May 12, 2026 10:50
Base automatically changed from feature/phpstan-max-completion to develop May 12, 2026 10:50
@codecov
Copy link
Copy Markdown

codecov Bot commented May 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (820dc08) to head (716bcfa).

Additional details and impacted files
@@             Coverage Diff             @@
##             develop       #46   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
  Complexity        71        71           
===========================================
  Files              1         1           
  Lines            185       185           
===========================================
  Hits             185       185           
Flag Coverage Δ
unittests 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

A few docblocks in `OpenIdConfigurationProvider` and the test suite
had their descriptions wrapped onto a continuation `*` line:

    * @param int $length
    *                    Length of the random string to be generated
    *
    * @return string
    *                The generated state

The `phpdoc_align: vertical` rule from the @symfony preset doesn't
create those wraps — it just aligns whatever multi-line structure
exists in the source. Flattening each description back onto its
`@param` / `@return` line lets the rule pad the columns into a
tidy table instead:

    * @param int $length Length of the random string to be generated
    * @return string     The generated state

No `.php-cs-fixer.dist.php` change: the @symfony default produces
the clean form once the source isn't pre-wrapped.

Also consolidates two `### Documentation` subsections under
`[Unreleased]` (left over from PR #44) into one — markdownlint's
MD024 was flagging the duplicate heading.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@turegjorup turegjorup self-assigned this May 12, 2026
@turegjorup turegjorup force-pushed the feature/phpdoc-align-left branch from 7906138 to 716bcfa Compare May 12, 2026 10:53
@turegjorup turegjorup merged commit 9f370c6 into develop May 12, 2026
16 checks passed
@turegjorup turegjorup deleted the feature/phpdoc-align-left branch May 12, 2026 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant